package com.woniuxy.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * @TableName t_advertisement
 */
@TableName(value ="t_advertisement")
@Data
public class Advertisement implements Serializable {
    @TableId(value = "ad_id", type = IdType.AUTO)
    private Integer adId;

    private String adName;

    private String imageUrl;

    private String redirectUrl;

    private String position;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startTime;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endTime;

    private Integer status;

    private Integer topLevel;

    private Date createTime;

    private Date updateTime;

    private static final long serialVersionUID = 1L;
}
